import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import App from './App.vue'
import router from './router/index'
import pinia from './stores'

import 'element-plus/dist/index.css'
import '@/styles/global.scss'
import '@/styles/element-plus.scss'

const app = createApp(App)

app.use(pinia)
app.use(router)
app.use(ElementPlus)

Object.entries(ElementPlusIconsVue).forEach(([name, component]) => {
  app.component(name, component)
})

app.mount('#app')
